home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 87 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: news.nic.surfnet.nl!sun4nl!xs4all!marketgraph!rvg
  2. From: rvg@marketgraph.xs4all.nl (Ruud van Gaal)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: RunCommand() of "execute" cmd seglist weirdness
  5. Message-ID: <200cvab60.alamito@marketgraph.xs4all.nl>
  6. Date: Tue, 2 Jan 96 21:12:32 CET
  7. Reply-To: rvg@marketgraph.xs4all.nl
  8. X-Newsreader: Alamito Mail and News Manager (V2.0.4 for Waffle) registered to MARKETGRAPH VISUAL AUTOMATION
  9.  
  10. In <4c5nra$beq@clare.res.com> samy@res.com (Sam Yee) wrote:
  11.  
  12. >I used FindSegment() to find the seglist for the command "execute".
  13. >I have a file called T:runcmd.test, with the content:
  14. >echo RunCommand begin
  15. >
  16. >This is an excerpt of the program:
  17. >RunCommand(ex_seglist,8192,"T:runcmd.test\n",14);
  18. >Flush(Output());
  19. >Printf("RunCommand end\n");
  20. >exit(0);
  21. >
  22. >The output:
  23. >RunCommand end
  24. >RunCommand begin
  25. >
  26. >This is weird as "execute" is run *after* Printf("RunCommand end\n").
  27. >This has been confirm with many other batch files such as
  28. >s:shell-startup.  Using RunCommand() on all other commands I've
  29. >tested has the predictable result.
  30.  
  31. Are you sure RunCommand() doesn't do something equivalent to 'RUN <program>'; 
  32. I mean create
  33. a new task, and execute it. This way the order of output would be 
  34. unpredictable (which it is).
  35. Try inserting a Delay(100) command; might change the order around.
  36.  
  37.  
  38. --
  39. ---------------------------------
  40. Ruud van Gaal
  41. E-Mail: rvg@marketgraph.xs4all.nl
  42.  
  43.